package sprite;
/*
 * @Author: Thibault
 * Sprite en forme de cercle
 */

import java.awt.*;

public class CircleSprite extends GameSprite
{
	private int radius;
		
	public CircleSprite (int r)
	{
		super(0, 0);
		radius = r;
	}
		
	public CircleSprite (int r, int startX, int startY)
	{
		super(startX, startY);
		radius = r;
	}
		
	public CircleSprite (int r, int startX, int startY, Color c)
	{
		super(startX, startY, c);
		radius = r;
	}
	
	public CircleSprite (int r, int startX, int startY, Color c, String id)
	{
		super(startX, startY, c, id);
		radius = r;
	}
	
	public void drawSprite (Graphics g)
	{
		Graphics2D g2 = (Graphics2D)g;
		g2.setColor(c);
		g2.fillOval(x, y, radius * 2, radius * 2);
		g2.setColor(Color.BLACK);
		g2.drawString(label, x, y);
	}
}
